package com.qfedu.service.impl;

import com.qfedu.dao.AccountMapper;
import com.qfedu.model.Account;
import com.qfedu.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AccountServiceImpl implements AccountService {
    public AccountServiceImpl() {
        System.out.println("业务层初始化");
    }

    @Autowired
    private AccountMapper accountMapper;
    @Override
//    @Transactional
    public List<Account> findAll() {
        return accountMapper.findAll();
    }
}
